-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solve how can I config root_path dynamically? #4968 #5081
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦄 change detectedThis Pull Request includes changes to the following packages.
With the following changelog entry.
Maintainers or the PR author can modify the PR title to modify this entry.
|
All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-5081-all-demos You can install the changes in this PR by running: pip install https://gradio-builds.s3.amazonaws.com/6be9048ffc8692c7a8f589745345252532ed3468/gradio-3.39.0-py3-none-any.whl |
This environmental variable looks good @eastonsuo but I would just make the change directly in |
Should be fixed now @eastonsuo. I confirmed that setting the Test code: import gradio as gr
import os
os.environ["GRADIO_ROOT_PATH"] = "/test"
gr.Interface(lambda x:x, "textbox", "textbox").launch(root_path="") You can try out this branch by installing Will merge in once CI passes. |
Description
Please include a concise summary, in clear English, of the changes in this pull request. If it closes an issue, please mention it here.
Closes: #(issue)
🎯 PRs Should Target Issues
Before your create a PR, please check to see if there is an existing issue for this change. If not, please create an issue before you create this PR, unless the fix is very small.
Not adhering to this guideline will result in the PR being closed.
Tests
PRs will only be merged if tests pass on CI. To run the tests locally, please set up your Gradio environment locally and run the tests:
bash scripts/run_all_tests.sh
You may need to run the linters:
bash scripts/format_backend.sh
andbash scripts/format_frontend.sh